import java.io.IOException;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import freemarker.template.TemplateException;


public class Test {

	/**
	 * @param args
	 * @throws SQLException 
	 * @throws ClassNotFoundException 
	 * @throws TemplateException 
	 * @throws IOException 
	 */
	public static void main(String[] args) throws ClassNotFoundException, SQLException, IOException, TemplateException {
		// TODO Auto-generated method stub
		Map<String,String> db= new HashMap<String,String>();
		db.put("dbType", "mysql");
		
		db.put("driverName", "com.mysql.jdbc.Driver");
		db.put("ip", "127.0.0.1");
		db.put("port", "3306");
		db.put("tableSchema", "tqd");
		db.put("user", "root");
		db.put("password", "123456");
		SqlUtil.initDB(db);
		
		
//		String sql=SqlUtil.queryTableSql();
//		List<Map<String,String>> tables =DataBaseCorpUtil.executeList(sql);
//		for(Map<String,String> table: tables){
//			System.out.println(table);
//		}
		
		
		AutoCreateJavaCodeUtilByFreeMark.createCode("D:\\code\\tdcy\\src");
	}

}
